package com.seeyon.apps.kkTimedTaskSharing;



import com.seeyon.apps.kkTimedTaskSharing.manager.KKTimedTaskSharingManager;
import com.seeyon.ctp.common.AbstractSystemInitializer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import javax.inject.Inject;

/**
 * 插件初始化类 定时任务初始化器
 */
@Component("kkTimedTaskSharingInitializer")
public class KKTimedTaskSharingInitializer extends AbstractSystemInitializer {


    private static final Log logger = LogFactory.getLog(KKTimedTaskSharingInitializer.class);

    @Inject
    private KKTimedTaskSharingManager kkTimedTaskSharingManager;

    @Override
    public void initialize() {
        logger.info("#客开日志-------------------start 【initialize】：KKBasicInfoTaskManager 初始化开始...");
        kkTimedTaskSharingManager.init();
        logger.info("#客开日志-------------------end【initialize】：KKBasicInfoTaskManager 初始化成功...");
    }

    @Override
    public void destroy() {
        logger.info("#客开日志-------------------end【initialize】：KKBasicInfoTaskManager...");
    }


}